﻿using System;
using System.Windows;

namespace WpfTestApplication
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            
        }

        protected override void OnStartup(StartupEventArgs e)
        {
            string window = "Window1.xaml";
            string[] commandLineArgs = Environment.GetCommandLineArgs();
            if (commandLineArgs.Length > 1)
            {
                window = commandLineArgs[1] + ".xaml";
            }
            this.StartupUri = new Uri(window,System.UriKind.Relative);
        }
    }
}
